﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TextStaticList.ascx.cs"
    Inherits="BackEnd_TextStaticList" %>
<%@ Register Src="TextStaticModify.ascx" TagName="TextStaticModify" TagPrefix="uc1" %>
<table id="Table2" cellspacing="1" cellpadding="1">
    <tr>
        <td class="toolbar">
            <b>
                <%=url%>
            </b>
        </td>
    </tr>
    <%--<tr>
        <td>
            <uc1:TextStaticModify ID="TextStaticModify1" runat="server" />
        </td>
    </tr>--%>
    <tr>
        <td>
            <div class="SearchTextStatic">
                <asp:TextBox ID="txtSearch" CssClass="txtSearch" runat="server" 
                    AutoPostBack="True" ontextchanged="txtSearch_TextChanged"></asp:TextBox></div>
            <div>
                <asp:Button ID="btnSearch" Text="Tìm theo VN" runat="server" OnClick="btnSearch_Click" /></div>
           <%-- <div class="SearchTextStatic">
                <asp:Button runat="server" Text="Resert" OnClick="GetAllTextStatic" /></div>--%>
        </td>
    </tr>
    <tr>
        <td colspan="4" class="LabMessage">
            <asp:Label ID="labMessage" runat="server" Width="100%" ForeColor="Red" Font-Bold="True"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="left">
            <asp:GridView runat="server" ShowHeader="true" ID="grid" BorderColor="#CC9966" BorderStyle="None"
                BorderWidth="1px" RowStyle-BorderWidth="0" RowStyle-BorderStyle="None" Width="100%"
                AlternatingRowStyle-BackColor="#f8f8f8" AlternatingRowStyle-BorderColor="#f8f8f8"
                HeaderStyle-BackColor="#F1F1F1" CellPadding="4" AutoGenerateColumns="False" AutoGenerateEditButton="True"
                OnRowEditing="grid_RowEditing" OnRowUpdating="grid_RowUpdating" AllowSorting="True"
                BackColor="White" ShowFooter="True" AllowPaging="True" OnPageIndexChanging="grid_PageIndexChanging"
                PageSize="20">
                <Columns>
                    <asp:TemplateField HeaderText="VN">
                        <ItemTemplate>
                            <%#Eval("VN")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox runat="server" ID="txtVN" Text='<%#Eval("VN")%>' TextMode="MultiLine" />
                        </EditItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="EL">
                        <ItemTemplate>
                            <%#Eval("EL")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox runat="server" ID="txtEL" Text='<%#Eval("EL")%>' TextMode="MultiLine" />
                        </EditItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="KeyWord">
                        <ItemTemplate>
                            <%#Eval("KeyWord")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox runat="server" ID="txtKeyWord" Text='<%#Eval("KeyWord")%>' />
                        </EditItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                </Columns>
                <RowStyle BorderStyle="None" BorderWidth="0px" />
                <HeaderStyle BackColor="#F1F1F1" />
                <AlternatingRowStyle BackColor="#F8F8F8" BorderColor="#F8F8F8" />
            </asp:GridView>
        </td>
    </tr>
</table>
